<%@page contentType="text/html"%>
<%@page pageEncoding="UTF-8"%>
<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean" %>
<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html" %>
<%@ taglib uri="http://struts.apache.org/tags-logic" prefix="logic" %>
<html:html lang="true">
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
		<script type="text/javascript" src="bbcalibracaoweb/js/jquery-1.8.2.js"></script>
		<script type="text/javascript" src="bbcalibracaoweb/js/utils.js"></script>
		<script type="text/javascript" src="bbcalibracaoweb/js/jquery.maskedinput-1.2.2.js"></script> 
		<link href="bbcalibracaoweb/css/styleLogin.css" rel="stylesheet" type="text/css">
		<title>BB Calibração - Login</title>
		<script type="text/javascript">
			$(document).ready(function() {
				$('#cnpj').focus();
				$('#cnpj').mask("99.999.999/9999-99");
			});
				
			function verificaTecla(e) {
				var keyCode = e.keyCode;
				if (keyCode == 13)
					autenticar();
			}
		</script>
	</head>
	<body>
		<div class="divPrincipal">
			<table class="tablePrincipal">
			<tr>
				<td class="tdTablePrincipal">
					<table class="tableLogin, fPadrao" align="center" cellspacing="0" cellpadding="0">  
					  <tr>
					  	<td colspan="3"><html:image src="bbcalibracaoweb/img/fundo.png"/></td>
					  </tr>    
					  <tr>
					  	<td width="16px" height="27px"><html:image src="bbcalibracaoweb/img/barraTitulo-inicio.gif"/></td>
					  	<td height="27px" class="TitleTableLogin"><strong style="color: #FFFFFF;">&nbsp;&nbsp;&nbsp;Busca</strong></td>
					  	<td width="10px" height="27px"><html:image src="bbcalibracaoweb/img/barraTitulo-fim.gif"/></td>
					  </tr>    
					  <tr bgcolor="#FFFFFF">
					  	<td colspan="3" align="center" style="padding-top:5px; padding-bottom:10px; text-align: center;">
					  		<html:form action="EfetivaBusca.do">
					  		<table width="310px" cellpadding="0" cellspacing="4" bgcolor="#FFFFFF" align="center" class="fPadrao">          
					          <tr>
					            <td colspan="4" align="left" height="30px" style="padding-top:5px; border-bottom:2px solid #E9E9E9;"><font color="#333333"><b>Consulta de calibração de equipamentos</b></font></td>
					          </tr>
					          <tr>
							  <td width="20" align="right"><img src="bbcalibracaoweb/img/blank.gif" width="20"></td>
					            <td colspan="3" align="left" height="40px"><font color="#333333">Para consultar preencha o campo CNPJ abaixo:</font></td>
					          </tr>
					          <tr>
					            <td width="20" align="left">&nbsp;</td>
					            <td width="50" align="left"><strong><font color="#333333">CNPJ:</font></strong></td>
					            <td colspan="2"><html:text property="cnpj" styleId="cnpj" value="${form.cnpj}" styleClass="fundoTextBox"/></td>
					          </tr>
					          <tr>
							  	<td colspan="4" align="right" ><table width="100%" class="fPadrao"><tr>
								<td style="text-align: left;" class="mensagemErro">${form.mensagem}&nbsp;</td>
								<td style="text-align: right;"><html:button onclick="window.location='http://www.bbcalibracao.com.br';" property="sair" value="Sair" styleClass="btLogin" />&nbsp;&nbsp;&nbsp;<html:submit value="Buscar" styleClass="btLogin" /></td>
								</tr></table></td>
					          </tr>
				       		</table>
				       		</html:form>
				       	</td>
					  </tr>
					</table>
				</td>
			</tr>
			</table>
		</div>
	</body>
</html:html>

